<?php
require_once('CView.php');
class CImage extends CView
{
	public $src;
	public $alt;
	
	public function __construct($src, $alt)
	{
		parent::__construct();
		$this->src = $src;
		$this->alt = $alt;
	}
	
	public function render()
	{
		return '<img'.$this->print_class().$this->print_id().'src="'.$this->src.'" alt="'.$this->alt.'">';
	}
}
?>